package org.arroganz.kapa.abstracts;

import javax.swing.JFrame;

public abstract class AbstractFrame extends JFrame{

	public void buildFrame(String titel, int x, int y){
		
		this.setSize(x, y);
		this.setTitle(titel);
		this.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
		this.setLocationRelativeTo(null);
		this.setVisible(true);
		
	}
	
	public void buildFrame(String titel){
		
		//this.setSize(x, y); // getScreen Methode
		this.setTitle(titel);
		this.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
		this.setLocationRelativeTo(null);
		this.setVisible(true);
		
	}
	
}
